<?php

class Users extends CI_Controller {

	public function index(){
		$this->main();
	}


	public function main(){
		$page = 'user';
		$data['mastheadImage'] = 'masthead.jpg';
		$data['page'] = $page;
			
		$this->loadAdminPage($page,$data);

	}

	public function delete($id){

		$data['deleteId'] = $id;
			
			
		$query = $this->db->query("delete from users where id = $id limit 1" );
			
		$this->index();
			
	}

}
